import { axios } from '@/utils/request'

/**
 * 查询同步目标设置
 *
 * @author gyp
 * @date 2022-12-05 11:00:08
 */
export function syncDataTargetPage (parameter) {
  return axios({
    url: '/syncDataTarget/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 同步目标设置列表
 *
 * @author gyp
 * @date 2022-12-05 11:00:08
 */
export function syncDataTargetList (parameter) {
  return axios({
    url: '/syncDataTarget/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加同步目标设置
 *
 * @author gyp
 * @date 2022-12-05 11:00:08
 */
export function syncDataTargetAdd (parameter) {
  return axios({
    url: '/syncDataTarget/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑同步目标设置
 *
 * @author gyp
 * @date 2022-12-05 11:00:08
 */
export function syncDataTargetEdit (parameter) {
  return axios({
    url: '/syncDataTarget/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除同步目标设置
 *
 * @author gyp
 * @date 2022-12-05 11:00:08
 */
export function syncDataTargetDelete (parameter) {
  return axios({
    url: '/syncDataTarget/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出同步目标设置
 *
 * @author gyp
 * @date 2022-12-05 11:00:08
 */
export function syncDataTargetExport (parameter) {
  return axios({
    url: '/syncDataTarget/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
